
#import <UIKit/UIKit.h>



typedef void(^SuccessBlocka)(id _Nullable dict);
typedef void(^FailureBlock)(NSError * _Nullable error);

@interface BaseViewController : UIViewController

@property(nonatomic,assign)BOOL isHidenBackgroundImage ;//是否隐藏背景图片
@property(nonatomic,assign)BOOL isHidenDog ;//导航栏是否有小狗
@property(nonatomic,strong)UIButton * _Nullable  rightBarButton;

- (void)popVc;//返回上一页

- (void)getWithUrl:(NSString *_Nullable)urlString param:(NSDictionary *_Nullable)param tableView:(UITableView *_Nonnull)tableView success:(SuccessBlocka _Nullable )success failure:(FailureBlock _Nullable )failure;

- (void)PostWithUrl:(NSString *_Nullable)urlString param:(NSDictionary *_Nullable)param tableView:(UITableView *_Nonnull)tableView success:(SuccessBlocka _Nullable )success failure:(FailureBlock _Nullable )failure;

- (void)PutWithUrl:(NSString *_Nullable)urlString param:(NSDictionary *_Nullable)param tableView:(UITableView *_Nonnull)tableView success:(SuccessBlocka _Nullable )success failure:(FailureBlock _Nullable )failure;

- (void)DeleteWithUrl:(NSString *_Nullable)urlString param:(NSDictionary *_Nullable)param tableView:(UITableView *_Nonnull)tableView success:(SuccessBlocka _Nullable )success failure:(FailureBlock _Nullable )failure;
@end
